<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input id="input" type="text">
    <script src="./防抖、节流.js"></script>
    <script>
        const input = document.getElementById('input');
        const fn = debounce(function () {
            console.log('debounce');
        }, 1000, true);
        input.addEventListener('input', fn);

    </script>
</body>

</html>